/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.area_info.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 区域信息Entity
 * @author xlp
 * @version 2019-04-11
 */
public class AreaInfo extends DataEntity<AreaInfo> {
	
	private static final long serialVersionUID = 1L;
	private String areaName;		// 区域名称
	private Date updateTime;		// 更新日期
	private String max;		// 最大阈值
	
	public AreaInfo() {
		super();
	}

	public AreaInfo(String id){
		super(id);
	}

	@Length(min=1, max=64, message="区域名称长度必须介于 1 和 64 之间")
	public String getAreaName() {
		return areaName;
	}

	public void setAreaName(String areaName) {
		this.areaName = areaName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="更新日期不能为空")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	@Length(min=0, max=3, message="最大阈值长度必须介于 0 和 3 之间")
	public String getMax() {
		return max;
	}

	public void setMax(String max) {
		this.max = max;
	}
	
}